/**
 * Project Name:StudentRepository.java
 * File Name:StudentRepository.java
 * Date:2019-03-04 22:16
 * Copyright (c) 2019, zhang.xiangyu@foxmail.com All Rights Reserved.
 */
package com.meatball.student.repository;

import com.meatball.student.entity.Student;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Mono;

/**
 * @Title: StudentRepository.java
 * @Description: todo(持久层)
 * @Author: 張翔宇
 * @Date: 2019-03-04 22:16
 * @Version: V1.0
 */
public interface StudentRepository extends ReactiveMongoRepository<Student, String> {
    /**
     * @title: findByName
     * @description: todo(根据名称查询学生信息)
     * @params: [name]
     * @return: reactor.core.publisher.Mono<com.meatball.student.entity.Student>    返回类型
     * @author: 張翔宇
     * @date: 2019-03-04 22:25
     */
    Mono<Student> findByName(String name);
}
